#pragma once
#include <string>
using namespace std;

namespace Utils
{

string  getAppPathA();
wstring getAppPathW();
string  formatString(const char *format, ...);
wstring formatString(const wchar_t *format, ...);
void    msleep(int ms);
void    longSleep(int ms, bool &isLoop);
// horizontal angle
double  calcAngle(double x1, double y1, double x2, double y2);
double  calcAngle(double x1, double y1, double x2, double y2, double x3, double y3,
                  bool absAngle = true);
// the angle between two lines
double  calcAngle(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4,
                  bool absAngle = true);

};

